home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: Mike Girou <girou@parashift.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Question about visibility of local variables
- Date: Wed, 06 Mar 1996 23:45:43 -0600
- Organization: Paradigm Shift, Inc.
- Message-ID: <313E7807.5CC2@parashift.com>
- References: <4hgufv$48h@hpbblb.bbn.hp.com> <4hifc6$hm5@news1.usa.pipeline.com> <4hj56k$elu@sam.inforamp.net>
- NNTP-Posting-Host: ix-dfw11-20.ix.netcom.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-NETCOM-Date: Wed Mar 06 9:46:03 PM PST 1996
- X-Mailer: Mozilla 2.0 (Win95; I)
-
- Randy Charles Morin wrote:
- >
- > In article <4hifc6$hm5@news1.usa.pipeline.com>,
- > grantp@usa.pipeline.com(Pete) wrote:
- > >On Mar 05, 1996 08:37:19 in article <Re: Question about visibility of local
- > >variables>, 'Matthias Dittrich <matti>' wrote:
- > >>A variable defined in a block (you should do this at the begin) is valid
- > >Why?
- >
- > Because its easier to read.
- >
- > Agrivar
-
- Well, maybe. Certainly that was the way we did things in C. But
- there has been quite a lot written about declaring/defining at first
- use, particularly with class variables. These arguments include
- possible efficiency and the notion that variables needed to properly
- initialize may not be known when the "block" is entered.
-
- Mike
-
-
- --
- Mike Girou girou@parashift.com
-